/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package do_.com.pbd.business.referrals.creditcardreferralprogramstatusupdater.impl;

/**
 *
 * @author Samuel Pichardo
 */
public class NewMain {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        System.out.println("result=" + isOnlyNumber0(null));
        //System.out.println("Tiene numeros=" + isOnlyNumbers("4s343343"));
    }

    private static String checkClientIdFormat(String idClient) {
        String result = null;
        if (idClient != null) {
            result = idClient.replace("-", "");
        }
        return result;
    }
    static String numeros = "0123456789";

    private static boolean isOnlyNumbers(String texto) {

        for (int i = 0; i < texto.length(); i++) {
            if (numeros.indexOf(texto.charAt(i), 0) == -1) {
                return false;
            }
        }

        return true;
    }

    private static boolean isOnlyNumber0(String texto) {
        if (texto != null) {
            for (int i = 0; i < texto.length(); i++) {
                if ("0".indexOf(texto.charAt(i), 0) == -1) {
                    return false;
                }
            }
        }
        return true;
    }

    private static String checkClientIdFormat222(String idClient) {
        String result = null;
        if (idClient != null) {
            result = idClient.replace("-", "");
            return result;
        }

        return "-";

    }
}
